
    <{foreach from=$data item=item}>
    <tr>
        <td><{$item['id']}></td>
        <td><{$item['realName']}></td>
        <td><{$item['nick_name']}></td>
        <td><{$item['payAccount']}></td>
        <td><{$item['indirectBenefit']}></td>
        <td><{$item['directBenefit']}></td>
        <td><{$item['rechargeMoney']}></td>
        <td><{$item['directBenefit'] + $item['indirectBenefit'] }></td>
        <td><{$item['promotion_reward']/100}></td>
        <td><{$item['removed_promotion_reward']/100}></td>
        <td id="unpay_<{$item['id']}>"><{$item['unpaid']}></td>
        <td id="pay_<{$item['id']}>"><{$item['paid']}></td>
        <td>
            <{if $item['unpaid']}>
            <div class="col-sm-6">
                <input agentId="<{$item['id']}>" agent="<{$item['realName']}>" class="money form-control" type="number"  placeholder="结算金额"  />
            </div>
                <button class="pay" >结算</button>

            <{/if}>
        </td>
        <td> <a href="javascript:void(0)" class="detail" agentId="<{$item['id']}>">详情</a> </td>
    </tr>
    <{/foreach}>
